package com.xiaoxx.mapper;

import com.xiaoxx.model.entity.chat.ChatContent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoxx.model.vo.chat.ChatTokenStatisticsAllVo;
import com.xiaoxx.model.vo.chat.ChatTokenStatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HX
 * @since 2023-07-19
 */
public interface ChatContentMapper extends BaseMapper<ChatContent> {

    List<ChatTokenStatisticsVo> tokenStatistics(@Param("userId") String userId, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime, @Param("groupInfo") String groupInfo);

    List<ChatTokenStatisticsAllVo> ChatTokenStatisticsAllVo(String userId);
}
